void main() {
    //非运算
    boolean a = !true;
    System.out.println(a);

    //与运算
    boolean b = true & false;
    System.out.println(b);


    //或运算
    boolean c = false | true;
    System.out.println(c);


    //混合逻辑运算
    boolean d = (true & false) | true;
    System.out.println(d);


    //短路运算
    boolean a1 = false && (true | false);
    System.out.println(a1);


    //双非再或
    boolean b1 = !!true || false;
    System.out.println(b1);


    //短路且运算
    boolean c1 = true && false && true;
    System.out.println(c1);


    //混合或
    boolean d1 = false | false | true;
    System.out.println(d1);

}